import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'
import { BaseEntity } from './BaseEntity'
import { DateEntity } from './DateEntity'

// 扩延伸项目清单
@Entity({ name: 't_project' })
export class Project extends BaseEntity {
  @Column({ name: 'project_name', type: 'text', comment: '项目名称' })
  projectName: string

  @Column({ name: 'project_no', type: 'text', comment: '项目编号' })
  projectNo: string

  @Column({ name: 'project_proposal_date', type: 'text', comment: '立项日期' })
  projectProposalDate: string

  @Column({ name: 'remark', type: 'text', comment: '备注' })
  remark: string

  @Column((type) => DateEntity)
  '': DateEntity
}
